/**
 * Copyright (c) 2009 blurredVision
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
 * associated documentation files (the "Software"), to deal in the Software without restriction, 
 * including without limitation the rights to use, copy, modify, merge, publish, distribute, 
 * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is 
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all copies or 
 * substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT 
 * NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, 
 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT 
 * OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */
#ifndef __GUI_DEFAULTSETTINGS_H__
#define __GUI_DEFAULTSETTINGS_H__

#pragma once

#include "guidefaults.h"
#include "geom/Vector.h"
#include <string>

namespace gui {

/**
 * \ingroup coreGUI
 * 
 * The DefaultSettings class.<br>
 * In order to design a basic look and feel of the colors, default settings can be applied.<br>
 * All gui elements that are created after a value is changed are given default attributes from this class.
 *
 * \date 05-02-2007
 *
 * \author juckel
 *
 * \todo Insert Comments.
 *
 */
	class GUI_EXPORT DefaultSettings
{
public:
	static bool readStyle(const std::string &stylefile);

	static void setBorderColor(const math::Vector4 &color);
	static void setBorderColor(float r, float g, float b, float a);

	static void setTextColor(const math::Vector4 &color);
	static void setTextColor(float r, float g, float b, float a);

	static void setBackColor(const math::Vector4 &color);
	static void setBackColor(float r, float g, float b, float a);

	static void setHighlightedBackColor(const math::Vector4 &color);
	static void setHighlightedBackColor(float r, float g, float b, float a);

	static void setHighlightedTextColor(const math::Vector4 &color);
	static void setHighlightedTextColor(float r, float g, float b, float a);

	static void setHighlightedBorderColor(const math::Vector4 &color);
	static void setHighlightedBorderColor(float r, float g, float b, float a);

	static void setSelectedTextColor(const math::Vector4 &color);
	static void setSelectedTextColor(float r, float g, float b, float a);

	static void setSelectedBackColor(const math::Vector4 &color);
	static void setSelectedBackColor(float r, float g, float b, float a);

	static const math::Vector4& getTextColor();
	static const math::Vector4& getBackColor();
	static const math::Vector4& getBorderColor();

	static const math::Vector4& getHighlightedTextColor();
	static const math::Vector4& getHighlightedBackColor();
	static const math::Vector4& getHighlightedBorderColor();

	static const math::Vector4& getSelectedTextColor();
	static const math::Vector4& getSelectedBackColor();
	static const math::Vector4& getSelectedBorderColor();

protected:
	DefaultSettings(void);
	virtual ~DefaultSettings(void);

	static math::Vector4 s_vTextColor;
	static math::Vector4 s_vBorderColor;
	static math::Vector4 s_vBackColor;
	static math::Vector4 s_vHighlightedBackColor;
	static math::Vector4 s_vHighlightedTextColor;
	static math::Vector4 s_vHighlightedBorderColor;
	static math::Vector4 s_vSelectedBackColor;
	static math::Vector4 s_vSelectedTextColor;
	static math::Vector4 s_vSelectedBorderColor;

	/// \todo Implement
	static std::string defaultFont;
	static int         defaultFontSize;
};

} // namespace 

#endif
